package org.darkforest.dao.redis.impl;

import org.darkforest.dao.redis.PBoothGoodsRedisDao;
import org.darkforest.dao.redis.templete.AbstractListRedisOper;
import org.darkforest.model.PBoothGoods;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by pc on 2016/11/17.
 */
@Component
public class PBoothGoodsRedisDaoImpl extends AbstractListRedisOper<PBoothGoods> implements PBoothGoodsRedisDao {
    @Override
    public void addPBoothGoodsList(String key, List<PBoothGoods> pBoothGoodsList) {
        this.addList(key,pBoothGoodsList);
    }

    @Override
    public List<PBoothGoods> getPBoothGoodsListByKey(String key) {
        return this.getList(key);
    }

    @Override
    public void deleteList(String key) {
      this.deleteListByKey(key);
    }
}
